package com.yanze.schoolinformation.model.http.reqo;

import io.reactivex.Observable;
import io.reactivex.android.schedulers.AndroidSchedulers;
import io.reactivex.schedulers.Schedulers;

/**
 * 对Observable进行线程的加工
 * Created by MrZheng on 2018/4/4.
 */

public class BaseReqo {
    protected Observable transform(Observable observable) {
        return observable.subscribeOn(Schedulers.io())
                .observeOn(AndroidSchedulers.mainThread());
    }
}
